/**
 * @module 公用头部
 * @author Yun Tang 
 * @date 2020-05-23 16:49:55 
 */

import React from 'react';

interface IProps {
  text: string;
}

const Header: React.FC<IProps> = ({ text }) => {
  return (
    <p style={{
      textAlign: 'center',
      background: '#0066FF',
      color: '#fff',
      margin: 0,
      lineHeight: '44px'
    }}>{text}</p>
  )
}

export default Header